"""
File Name: Pycharm
Description:   cookie_type
Author: Panwj
Date: 2025/9/6 13:46
"""
import json

if __name__ == '__main__':
    cookies = [{"name": "session_tracker",
      "value": "ghqlelofgrchliikef.0.1757129597308.Z0FBQUFBQm91NnQ5WjFZMU1hY2ZYX1d5c2NvLTZlQ2hFQlp0QlNjTDA2TTAyR2R0VkM1YVlfdmlmZjAxMTFETWdOcWpSYWdJdzN6bVNoaFNYRHpNNVJVd0M1RGFrRGNtN2VCSkk2Xzlad2dqT2tFOVg4WFhpb1o0RnFxd2F2VXhhUkdJX3pqUmNNWUg",
      "domain": ".reddit.com"}, {"name": "reddit_session",
                                 "value": "eyJhbGciOiJSUzI1NiIsImtpZCI6IlNIQTI1NjpsVFdYNlFVUEloWktaRG1rR0pVd1gvdWNFK01BSjBYRE12RU1kNzVxTXQ4IiwidHlwIjoiSldUIn0.eyJzdWIiOiJ0Ml8xeDdjNGRybXJyIiwiZXhwIjoxNzcyNzY3MzQ3LjQwMTMxLCJpYXQiOjE3NTcxMjg5NDcuNDAxMzEsImp0aSI6InpGUG5URUNnYnNKUGRjT1NBdWl5b2VnMF9VZTBIdyIsImNpZCI6ImNvb2tpZSIsImxjYSI6MTc1NzEyODk0NzQwMSwic2NwIjoiZUp5S2pnVUVBQURfX3dFVkFMayIsInYxIjoiMTk1MjMxNTE5MTQwMTAzLDIwMjUtMDktMDZUMDM6MjI6MjcsNWVhZDk4ZTgwM2RiOGVmZGYwZDRiNzg0NjgxYWM5ODBlZWUyNzU0ZSIsImZsbyI6MTF9.UAxF6xDIycH3eEUFEJrUjnzSPXg2LhJlGIghXL__P_uh5DxZWjJYbg-orG7LyGJUmjmaUJJjWQ1o6IPyyMLWoBhZy814hzTRTIIyU8kHFPuuTd1SdOZL7ID7QE5m21fxP3zHmrBdJZnKPKhHE9eKF2KGzvtiKgHWK-bFDYaZcD1aJm7C_7HVFYOPjTzm9PSvIziu5QOwaTWQISQmxg6ORa52ZUEKI-y6-K-Jqu3yBW62rBMeBpqyCYQHURiGxhbP8e-bv9le9-JjYoDxMDWDg02rQH1KY7dP4JjSn7FuJJUbyrK_ww7QfylWrPiRn3ospRLuWFaeI6qZ-y44G1lpgA",
                                 "domain": ".reddit.com"},
     {"name": "csrf_token", "value": "9ca60becdc8481c0f40c754b91e5438a", "domain": ".reddit.com"}, {"name": "token_v2",
                                                                                                    "value": "eyJhbGciOiJSUzI1NiIsImtpZCI6IlNIQTI1NjpzS3dsMnlsV0VtMjVmcXhwTU40cWY4MXE2OWFFdWFyMnpLMUdhVGxjdWNZIiwidHlwIjoiSldUIn0.eyJzdWIiOiJ1c2VyIiwiZXhwIjoxNzU3MjE1MzQ4LjgyODIyOSwiaWF0IjoxNzU3MTI4OTQ4LjgyODIyOSwianRpIjoiUEZRQ2xEN21ybnFsSGZOWkN4TmdwcG9YdUdxak13IiwiY2lkIjoiMFItV0FNaHVvby1NeVEiLCJsaWQiOiJ0Ml8xeDdjNGRybXJyIiwiYWlkIjoidDJfMXg3YzRkcm1yciIsImxjYSI6MTc1NzEyODk0NzQwMSwic2NwIjoiZUp4a2tkR090REFJaGQtRmE1X2dmNVVfbTAxdGNZYXNMUWFvazNuN0RWb2NrNzA3Y0Q0cEhQOURLb3FGRENaWGdxbkFCRmdUclREQlJ1VDluTG0zZzJpTmU4dFlzWm5DQkZtd0ZEcmttTEdzaVFRbWVKSWF5eHNtb0lMTnlGeXV0R05OTFQwUUpxaGNNcmVGSHBjMm9ia2JpNTZkR0ZXNXJEeW9zVmZsMHRqR0ZMWW54amNicXcycHVDNm5Na25MUXZrc1h2VGpOOVczOXZtel9TYTBKOE9LcXVtQjNobEpDRzRzZnBpbTNkOVRrNTZ0Q3hhMTkzcVEydWQ2M0s1OTFpdzBPN2VmNl9sckl4bVhZMmgtSnZ0MzF5LWhBNDg4THpQcUFFYXM0VWNaZG1RZF9sVUhVTG1nSkdNSjR0TUk1TXJsMjM4SnRtdlR2OGJ0RXo5OE0tS21OX3pXRE5SekNlTFFwX0gxR3dBQV9fOFExZVRSIiwicmNpZCI6ImVXMGNNNHZnVlZYbElpakFGSk1jRXpvQklPN3ZVdG4ySERNeHd6elpBamciLCJmbG8iOjJ9.OBeI7pwQxb0ZBXEO-5_1l8SibU5rSxUA2sNK5R9j03IGc6Kd7lfL-kX6YenZJs56WU16Nsas7U5pBzetCqqK6OtF5uckeU5M1MequDG_X5Jrtj2vtdxlOzFHFocU0UWgdPMWxhp1WNXeKj3Ba-cWNWuYfxBGnC3ztFojxH4WA8LOk83ppwjvJVAys_jf4m84rA9Pky19vgsSu0XGdXGo2IbTb-_qhy-sopwmBfvAnyctY7AqQHUyIpgcnFkPTgMnKt_TdXSQ0OUoWZ6lI4zHYCAIHV2jshO-3AgFtYnygazEfk0F3JCYMfVxvy_rYYas1p6ZB2E2C4cWvDTRP2jWuQ",
                                                                                                    "domain": ".reddit.com"},
     {"name": "loid",
      "value": "000000001x7c4drmrr.2.1757128129503.Z0FBQUFBQm91NlhCWlRPM2s3VUJONWRKTHBlYmxvbTJlTFBlOUpUU1JacFdaYk84ZUM1R1JuTlRCbThqbnJFYjY4RHNUbnEtV3NjbHZZSlNqemptT25OdXltekFFMzBhSV9kWUpiamlMN2xiY2pVYTFscVJXckIyUHZrSlR4ako0dGhnX3pOZmlLS0U",
      "domain": ".reddit.com"}, {"name": "reddit_chat_view", "value": "closed", "domain": "www.reddit.com"},
     {"name": "csv", "value": "2", "domain": ".reddit.com"}, {"name": "theme", "value": "1", "domain": ".reddit.com"},
     {"name": "edgebucket", "value": "IjHJaAeqdj8opPNZgP", "domain": ".reddit.com"},
     {"name": "rdt", "value": "4ec323eb431be7be7837df2f9be66795", "domain": ".reddit.com"}]

    cookies_v2 = {
    'rdt': '49b35f01d8741fce5ba9a77076504a46',
    'edgebucket': 'zIA2uriG8Z1ZNdLOc6',
    'loid': '000000001x841mhcqj.2.1757155273180.Z0FBQUFBQm92QV9KQ2JhbnhDZW9mNVlGRVNBTVlSNlVReVRkUXlBOEVhMnFMaUYwRGxPdzd6UlJ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ZB9dMd1TJkwlj2mhaPot8kzwCkct1NiWM92A72ZKblrpnZ7qr5FHujA02GTH4NlZMbasvAWK4-0l5otR-PMcLgWrpFlhuFdJU_R00Zqa90WjUiYXCFuF6Z_Aqy58hKTVKCaO6cCUKZWecuBv011v1gytvZBpz1oVwmA',
    'session_tracker': 'gidbdpqdcjcpfkpgpd.0.1757158070784.Z0FBQUFBQm92QnEyUGQ5QnFZR0xDVUZYR2pfdTZhWVZoYjJJRlExYW5iOEtVcmt3WEJLWF9yd0d6ZlBHeXZvdk5BUzl5S0t0ekROZzRhOGFTa0ZwSFZqTDlralhLb2tXMUdDdVVrZ3FvSWFmUUdrWUtCT09ud0I4a0R0MHlaX29OYm8wX1FzMGJTek0',
}
    results = []
    for each_cookie in cookies:
        cookie_name = each_cookie['name']
        if cookies_v2.get(cookie_name):
            each_cookie['value'] = cookies_v2[cookie_name]

        results.append(each_cookie)
    print(json.dumps(results))